import axios from '@/libs/api.request'


export default {
    applicationPage(data) {
        return axios.request({
            url   : '/application/application/page',
            data,
            method: 'post'
        })
    },
    applicationStore(data) {
        return axios.request({
            url   : '/application/application',
            data,
            method: 'post'
        })
    },
    applicationUpdate(id, data) {
        return axios.request({
            url   : `/application/application/${id}`,
            data,
            method: 'put'
        })
    },
    applicationDestroy(id, data) {
        return axios.request({
            url   : `/application/application/${id}`,
            data,
            method: 'delete'
        })
    },
    applicationUpdateSecretKey(id) {//更新秘钥操作
        return axios.request({
            url   : `/application/application/${id}/update-secret-key`,
            method: 'put'
        })
    },
}